fs: Add MODULE_SOFTDEP declarations for hard-coded crypto drivers
authorBen Hutchings <ben@decadent.org.uk>
Wed, 13 Apr 2016 20:48:06 +0000 (21:48 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 15 May 2019 22:07:16 +0000 (23:07 +0100)
This helps initramfs builders and other tools to find the full
dependencies of a module.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
[Lukas Wunner: Forward-ported to 4.11: drop parts applied upstream]

Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name fs-add-module_softdep-declarations-for-hard-coded-cr.patch

fs/btrfs/super.c
fs/crypto/crypto.c
fs/ext4/super.c
fs/f2fs/super.c
fs/jbd2/journal.c
fs/nfsd/nfsctl.c

index 8888337a95b6455c31b091025cc0e940dc69a954..204a7eb23c347b4a26110c2afe425daa7eb38a0a 100644 (file)
@@ -2514,3 +2514,4 @@ late_initcall(init_btrfs_fs);
 module_exit(exit_btrfs_fs)
 
 MODULE_LICENSE("GPL");
+MODULE_SOFTDEP("pre: crypto-crc32c");
index 0f46cf550907fcc4a0675b85df9e3331f010e744..bf08c6e9726c365155d196976751b102b49eec2c 100644 (file)
@@ -499,3 +499,4 @@ static void __exit fscrypt_exit(void)
 module_exit(fscrypt_exit);
 
 MODULE_LICENSE("GPL");
+MODULE_SOFTDEP("pre: crypto-aes crypto-ecb");
index abba7ece78e94cec740dea729d6d5a3b417d8ee9..d518bbe2c178d518800d1a75da05031bdb762264 100644 (file)
@@ -6073,6 +6073,6 @@ static void __exit ext4_exit_fs(void)
 MODULE_AUTHOR("Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts'o and others");
 MODULE_DESCRIPTION("Fourth Extended Filesystem");
 MODULE_LICENSE("GPL");
-MODULE_SOFTDEP("pre: crc32c");
+MODULE_SOFTDEP("pre: crypto-crc32c");
 module_init(ext4_init_fs)
 module_exit(ext4_exit_fs)
index 2264f27fd26d20c4bb650d05ed42b210649cbf42..f4d30bee815bcd393fe5cc96863c0c5869610d5f 100644 (file)
@@ -3352,4 +3352,5 @@ module_exit(exit_f2fs_fs)
 MODULE_AUTHOR("Samsung Electronics's Praesto Team");
 MODULE_DESCRIPTION("Flash Friendly File System");
 MODULE_LICENSE("GPL");
+MODULE_SOFTDEP("pre: crypto-crc32c");
 
index 88f2a49338a10c140e08f35337395de13b47b55f..d6a3dec4f06c08c04eb4df93f977b5e9cda9a8aa 100644 (file)
@@ -2724,6 +2724,7 @@ static void __exit journal_exit(void)
 }
 
 MODULE_LICENSE("GPL");
+MODULE_SOFTDEP("pre: crypto-crc32c");
 module_init(journal_init);
 module_exit(journal_exit);
 
index cb69660d0779721ba45788114702adf172651344..e44cf94a84e6448aa6835493208eb91bb88907ee 100644 (file)
@@ -1337,5 +1337,8 @@ static void __exit exit_nfsd(void)
 
 MODULE_AUTHOR("Olaf Kirch <okir@monad.swb.de>");
 MODULE_LICENSE("GPL");
+#ifdef CONFIG_NFSD_V4
+MODULE_SOFTDEP("pre: crypto-md5");
+#endif
 module_init(init_nfsd)
 module_exit(exit_nfsd)